<!--回复的礼物-->
<script setup>
import {toRefs} from "vue";
import {replaceResource} from "@/assets/js/routerUtils";

const props = defineProps({
  //礼物列表
  data: {type: Array},
})

const {data} = toRefs(props)

</script>

<template>
  <h5>礼物</h5>
  <el-badge v-for="{url,count} in data" :value="count" type="danger">
    <img :src="replaceResource(url)" alt="" style="width: 3em;height: 3em;margin-right: 2px"/>
  </el-badge>
</template>

<style scoped>

</style>